// Stepper不能直接驱动28BYJ48，因为拍子表不同，所以我们更改为 Stepper28BYJ48,在这个代码中我们更改了拍子表

#include <Arduino.h>
#include <Stepper28BYJ48.h>

// put function declarations here:
#define STEPS 512
Stepper28BYJ48 stepper(STEPS, 5, 4, 3, 2);

void setup()
{
  // put your setup code here, to run once:
}

void loop()
{
  // put your main code here, to run repeatedly:
  stepper.setSpeed(60);
  stepper.step(2048);
  delay(1000);
  stepper.setSpeed(20);
  stepper.step(-512);
  delay(1000);
}

// put function definitions here: